/*
 * @Author: shenya
 * @Date: 2023-11-06 17:36:55
 * @Description: 昵称库管理
 */

export const tableOption = {
  ...window.$crudMixins.tableOptions,
  viewBtn: false,
  addBtn: true,
  editBtn: true,
  delBtn: true,
  labelWidth: 100,
  searchLabelWidth: 90,
  dialogCustomClass: 'dialog-classify',
  span: 24,
  menuWidth: 160,
  column: [
    {
      label: '昵称编号',
      prop: 'id',
      row: true,
      span: 12,
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: '昵称',
      prop: 'nickname',
      row: true,
      span: 12,
      search: true,
      rules: [
        {
          required: true,
          message: '请输入昵称',
          trigger: 'blur',
        },
      ],
    },
    {
      label: '创建时间',
      prop: 'createTime',
      width: 250,
      searchType: 'daterange',
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
    },
  ],
};
